package com.example.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
public class Student extends BaseEntity implements Serializable {
    private Long studentId;

    private String username;

    private String password;

    private String no;

    private String trueName;

    private String gender;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date joinSchoolDate;

    private Long collegeId;

    private Long majorId;

    private String collegeName;

    private String majorName;

    private BigDecimal sumScore;

    private Integer rank;

    private static final long serialVersionUID = 1L;
}